//
//  CellClearCache.m
//  HTHappySale
//
//  Created by 创维海通 on 2017/9/28.
//  Copyright © 2017年 zxyywy. All rights reserved.
//

#import "CellClearCache.h"

@implementation CellClearCache

+ (id)clearCache:(UITableViewCell *)cell{
    //干掉contentView上面的子控件!! 节约内存!!
    for (NSInteger i = 1; i <= 5; i++) {
        //干掉contentView 上面的所有子控件!!
        [[cell.contentView viewWithTag:i] removeFromSuperview];
    }
    return cell;
}

@end
